<template>
  <div class="page-b">
    <h1>{{ counter }}</h1>
    <NuxtLink to="/">index page</NuxtLink>
    <NuxtLink to="/childpage/page-a">page-a</NuxtLink>
  </div>
</template>

<script setup lang="ts">
defineOptions({
  name: "PageB",
});
const { counter } = useCounter();
</script>

<style lang="scss" scoped></style>
